package initialization

import (
	"api/internal/rpc"
	common "common/database"
)

func init() {
	ZapInit()
	ConsulInit()
	ServerInit()
}

func ZapInit() {
	common.ZapInit()
}

func ConsulInit() {
	common.ConsulInit()
}

func ServerInit() {
	goods := "127.0.0.1:50051"
	order := "127.0.0.1:50052"
	rpc.NewClient().GoodsClient(&goods)
	rpc.NewClient().OrderClient(&order)
}
